package com.mccloud.mini.controller.doudian;


import com.mccloud.mini.entity.YbGoods;
import com.mccloud.mini.service.IYbGoodsService;
import com.mccloud.mini.vo.AddGoodsReq;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

import java.util.UUID;

/**
 * <p>
 * 商品 前端控制器
 * </p>
 *
 * @author 宋发准
 * @since 2020-11-12
 */
@RestController
public class YbGoodsController {

    @Autowired
    IYbGoodsService goodsService;

    @PostMapping("addGoods")
    public Boolean addGoods(@RequestBody AddGoodsReq req) {
        Boolean bool = goodsService.addGoods( req);
        return bool;
    }

}

